package com.woniu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniu.entity.SysRolePermission;
import com.woniu.service.SysRolePermissionService;
import com.woniu.mapper.SysRolePermissionMapper;
import org.springframework.stereotype.Service;

import javax.xml.ws.Response;
import java.util.List;

/**
* @author mashiro
* @description 针对表【sys_role_permission(角色-权限关联表)】的数据库操作Service实现
* @createDate 2025-02-14 11:39:31
*/
@Service
public class SysRolePermissionServiceImpl extends ServiceImpl<SysRolePermissionMapper, SysRolePermission>
    implements SysRolePermissionService{

    @Override
    public Response<?> getAllPermissionByRoleId(List<Integer> roleIdList) {
        roleIdList.stream().forEach(roleId -> {
            //根据角色id获取权限
           lambdaQuery().eq(SysRolePermission::getRoleId, roleId).list();
        });
        return null;
    }
}




